package com.nami.web.convert;

import com.nami.store.api.response.group.GroupDTO;
import com.nami.web.vo.group.GroupInfo;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.Mappings;
import org.mapstruct.factory.Mappers;

@Mapper
public interface GrpConvert {

    GrpConvert INSTANCE = Mappers.getMapper(GrpConvert.class);

    @Mappings({
        @Mapping(target = "grpAvatar", source = "groupAvatar"),
    })
    GroupInfo convert(GroupDTO dto);


}
